
    {foreach $hotel.room as $room}
		{if $room.noData neq true}
       <div style="padding:5px;" id="room{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}_{$room@iteration}">
            <div style="border: 1px solid #000000; padding: 5px;">
                    <div>
                        <form method="post" action="bookingPage.php">
                        <span style="font-weight:bold; font-size: 20px;"> {$room.roomTypeString}</span>
                        <span style="padding:10px;">
                            <strong style="color:#000;">
                                {* $room.averageRate *}
                                {$room.rateInfo.averageRate|string_format:"%.2f"}
                                {$room.rateInfo.currencyCode}
                            </strong>
                        </span>
                        <span   style="padding:10px;">
                            {if $room.nonRefundable eq 1}
                                <label style="color:red;"><strong> NON-REFUNDABLE</strong></label>
                            {else}
                                <label style="color:blue;"><strong> REFUNDABLE</strong></label>
                            {/if}
                        </span>
                        <span id="book_span">                   
                            <h3 class="right" style="padding-right:20px;">
                                
                                    {* Used for telling the login page that the user was sent from this page*}
                                    <input name="currentPage"           type="hidden" value="{$server}">
                                    {* Original POST fields - pass on POST values*}
                                    <input id="checkin{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="checkin"               type="hidden" value="{$hotel.checkin}"/>
                                    <input id="checkout{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="checkout"               type="hidden" value="{$hotel.checkout}"/>

                                    <input id="hotelId{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="hotelId"               type="hidden" value="{$hotel.id}"/>
                                    <input id="supplierType{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="supplierType"          type="hidden" value="{$hotel.supplierType}"/>
                                    <input id="roomRateKey{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="roomRateKey"           type="hidden" value="{$hotel.rateKey}"/>
                                    <input id="roomRateCode{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="roomRateCode"          type="hidden" value="{$room.rateCode}"/>
                                    <input id="roomCode{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="roomCode"              type="hidden" value="{$room.roomTypeCode}"/>
                                    <input id="hotelImage{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="hotelImage"            type="hidden" value="{$hotel.thumbnailUrl}"/>
                                    <input id="hotelName{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="hotelName"             type="hidden" value="{$hotel.hotelName}"/>
                                    <input id="roomDescription{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="roomDescription"       type="hidden" value="{$room.roomTypeString}"/>
                                    <input id="averageRate{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="averageRate"           type="hidden" value="{$room.rateInfo.averageRate}"/>
                                    <input id="total{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="total"                 type="hidden" value="{$room.rateInfo.total}"/>
                                    <input id="roomtotal{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="roomtotal"             type="hidden" value="{*$hotel.rateInfos.total*}"/>
                                    <input id="nightlyRateTotal{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="nightlyRateTotal"      type="hidden" value="{$room.rateInfo.nightlyRatesTotal}"/>
                                    <input id="surchargeTotal{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="surchargeTotal"        type="hidden" value="{$room.rateInfo.surchargeTotal}"/>
                                    <input id="currencyCode{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="currencyCode"          type="hidden" value="{$room.rateInfo.currencyCode}"/>
                                    <input id="minGuestAge{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="minGuestAge"          type="hidden" value="{$room.minGuestAge}"/>
                                    <input id="currentAllotment{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="currentAllotment"          type="hidden" value="{$room.currentAllotment}"/>
                                    <input id="averageRate{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}" name="averageRate"          type="hidden" value="{$room.rateInfo.averageRate}"/>
                                    
                                    
                                    <input value="Book now" id="search_button" type="submit" onclick=""></input>
                                
                            </h3>
                        </span>
                        <div> {$room.roomTypeDescription} </div>
                        <div style="background-image: url(../images/templatemo_middle.jpg); color:#fff;padding:5px;">
                            <div id="hotel_cancelation_policy{$hotel.id}" class="hotel_options">
                                <label class="link" onclick="showCancelationPolicy('cancelationPolicy{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}_{$room@iteration}');grabData('CANCEL','{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}_{$room@iteration}',{$hotel.id});" >
                                    Cancellation policy
                                </label>
                            </div>
                            <div id="cancelationPolicy{$hotel.id}{$room.roomTypeCode}{$room.nonRefundable}_{$room@iteration}" style="display:none;">
                                
                            </div>
                        </div>
                            </form>
                    </div><br />
            </div>
        </div>
		{else}
		<span> There are no rooms available for booking for the selected dates this hotel. </span>
		{/if}
    {/foreach}
    <div><br />
        <p> <b>* The room rates listed are for double occupancy per room unless otherwise stated and exclude tax recovery charges and service fees.</b></p>
    </div>